function formatterJsonTime2String(timeStamp){ 
	var datetime = new Date();
    datetime.setTime(timeStamp);
    var year=datetime.getFullYear();
    //月份重0开始，所以要加1，当小于10月时，为了显示2位的月份，所以补0
    var month = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1;
    var date = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
    var hour = datetime.getHours()< 10 ? "0" + datetime.getHours() : datetime.getHours();
    var minute = datetime.getMinutes()< 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
    var second = datetime.getSeconds()< 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
    return year + "-" + month + "-" + date+" "+hour+":"+minute+":"+second;
}
function showEOA(divid,clientId) {
	var tbid="tb_"+divid;
	$("#"+divid).html("<div class='card-box'>"
		+"<div class='form-group'>"
		+"<table id = '"+tbid+"'  >"
		+"</table>"
		+"</div>"
		+"</div>");
	//alert(clientId+"aaaa"+status);
	$("#"+tbid).bootstrapTable('destroy'); 
	//$("#memberDetail").modal('show');
	var reqData = new Object();
	reqData.clientId = clientId;
	reqData.serviceId = "130011";
	var data = RemoteAjaxJsonAsync(reqData);
	var res = $.parseJSON(JSON.stringify(data));
	var taskStatus = res.jsonBody.taskStatus;
	console.log(res);
	var detail;
	if(null!=res.jsonBody.taskDetail)
	{
	 	detail = $.parseJSON(JSON.stringify(res.jsonBody.taskDetail))
		console.log(detail);
		for(var i = 0; i < detail.length; i++){
			detail[i].fLOWDONEDATE = formatterJsonTime2String(parseInt(detail[i].fLOWDONEDATE));
			detail[i].approveResult = '审批通过';
			if( (i == detail.length -1) && ( taskStatus === '3' || taskStatus === '4' ))
				detail[i].approveResult = '审批未通过';
		}
	}
	$("#"+tbid).bootstrapTable('destroy'); 
	//$("#memberDetail").modal('show');	
	//加载数据
 	$('#'+tbid).bootstrapTable({
	     data:detail,
	     columns : [ 
			{
			field : 'fLOWID',
			align: 'center',
			valign: 'middle',
			title : '处理步骤'
			},
			{
			field : 'fLOWREALOWNERNAME',
			align: 'center',
			valign: 'middle',
			title : '流程处理人姓名'
			},
			{
			field : 'fLOWDESC',
			align: 'center',
			valign: 'middle',
			title : '处理要求描述'
			},
			{
			field : 'fLOWDONEDATE',
			align: 'center',
			valign: 'middle',
			title : '审批结束日期'
			},
			{
				field : 'approveResult',
				align: 'center',
				valign: 'middle',
				title : '审批结果'
			},
			{
				field : 'fLOWRESULT',
				align: 'center',
				valign: 'middle',
				title : '审批意见'
			}
		]
	 }); 
	//涮新数据  每次加载完 刷新一次 保证数据是最新的
 	$("#"+tbid).bootstrapTable('load', detail);
}
